package com.cwhuang.g7_tool_myhymns;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class EditEventActivity extends Activity {
	private Button btn_editHymn;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_edit_event);
        
        getViews();
        setClickListeners();
    }

    private void setClickListeners() {
		// TODO Auto-generated method stub
    	//點了後，能到EditHymnActivity
		btn_editHymn.setOnClickListener( new OnClickListener() {
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent(EditEventActivity.this, EditHymnActivity.class);
				startActivity(intent);
			}
		});
	}

	private void getViews() {
		// TODO Auto-generated method stub
		btn_editHymn = (Button)findViewById(R.id.btn_which_song);
	}

	@Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_edit_event, menu);
        return true;
    }
}
